import 'package:get/get.dart';
import 'package:practice/practice.dart';

import '404.dart';
import 'get_router_provider.dart';

class GetRouters{
  static const String notfound = "/notfound";
  static List<GetPage> getRouters(){
    List<GetRouterProvider> getRouter = [];
    // getRouter.add(CoursePlusRouters());
    List<GetPage> pages = [];

    getRouter.forEach((element) {
      pages.addAll(element.getRouters());
    });
    pages.addAll(PracticeRouters().getRouters());
    return pages;
  }

  static GetPage getUnknowRouter(){
    return GetPage(name: notfound, page:()=> NoPage());
  }
}